//
//  MILLightSettingCollectionViewCell.m
//  MicrowaveInteractionLight
//
//  Created by maple on 2016/12/15.
//  Copyright © 2016年 maple. All rights reserved.
//

#import "MILLightSettingCollectionViewCell.h"

@implementation MILLightSettingCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


#pragma mark -- 按钮点击
//灯开关切换
- (IBAction)changeLightStatusClickAction:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(changeLightDeviceStatusFunction:)])
    {
        [_delegate changeLightDeviceStatusFunction:sender];
    }
}

//删除设备
- (IBAction)deleteLightDeviceClickAction:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(deleteLightDeviceFunction:)])
    {
        [_delegate deleteLightDeviceFunction:sender];
    }
}

@end
